﻿using System;
class CompanyInfo
{
    static void Main()
    {
        string companyname;
        string companyadress;
        string companywebsite;
        string managerfirstname;
        string managerlastname;
        uint companyfax=0;
        uint managerphone=0;
        byte managerage=0;
        Console.Write("Please enter company name: ");
        companyname = Console.ReadLine();
        Console.Write("Please enter company adress: ");
        companyadress = Console.ReadLine();
        Console.Write("Please enter company website: ");
        companywebsite = Console.ReadLine();
        Console.Write("Please enter Manager`s first name : ");
        managerfirstname = Console.ReadLine();
        Console.Write("Please enter Manager`s Last name: ");
        managerlastname = Console.ReadLine();
        Console.Write("Please enter company fax number: ");
        while (true)
        {
            try
            {
                companyfax = uint.Parse(Console.ReadLine());
                break;
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message + "\nPlease re-enter fax number: ");
            }
        }
        Console.Write("Please enter manager`s phone number: ");
        while (true)
        {
            try
            {
                managerphone = uint.Parse(Console.ReadLine());
                break;
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message + "\nPlease re-enter phone number: ");
            }
        }
        Console.Write("Please enter manager`s age: ");
        while (true)
        {
            try
            {
                managerage = byte.Parse(Console.ReadLine());
                break;
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message + "\nPlease re-enter manager`s age:");
            }
        }
        Console.WriteLine();
        Console.WriteLine("Company name         | {0,-15} |", companyname);
        Console.WriteLine("Company adress       | {0,-15} |", companyadress);
        Console.WriteLine("Company website      | {0,-15} |", companywebsite);
        Console.WriteLine("Company fax number   | {0,-15} |", companyfax);
        Console.WriteLine("Manager First name   | {0,-15} |", managerfirstname);
        Console.WriteLine("Manager Last name    | {0,-15} |", managerlastname);
        Console.WriteLine("Manager age          | {0,-15} |", managerage);
        Console.WriteLine("Manager phone number | {0,-15} |", managerphone);
        Console.ReadLine();
    }
}

